Developer Documentation
PATH  WebObjects 4.5 Documentation > Getting Started With Direct to Java Client

   

Configuring the Customer Pane of the Query Window

The Customer pane allows you to search for customers by their city, first name, last name, credit card number, and credit card authorization. Users should not look up customers by credit card information, so you should remove it.

  1. Remove creditCard from the query property keys.

    The creditCard property is a to-one relationship that Direct to Java Client expands to the identify property keys (cardNumber and authorizationNum) of the relationship's destination entity (a CreditCard). By removing creditCard from the property keys, you remove the cardNumber and authorizationNum fields from the query interface.

  2. Add memberSince and phone to the property keys.

    Two other Customer properties, memberSince and phone, seem like reasonable attributes to query on, so add them.

  3. Order the keys as follows: firstName, lastName, city, phone, memberSince.

  4. Modify the list property keys.

    The results table is far too crowded with properties to be useful, so pare down the set of list property keys. Remove state, streetAddress, zip, and creditCard from the list property keys. Order the remaining keys as follows: firstName, lastName, city, phone, memberSince.

Move on to the next pane.


© 1999 Apple Computer, Inc. – (Draft. Last updated 05 Jan 00)